import request from '@/router/axios';
import { baseUrl } from '@/config/env';
export const listDept = () => request({
    url: baseUrl + '/sys/sysDepartment/page',
    method: 'post',
    data: {}
});
export const addDept = (data) => request({
    url: baseUrl + '/sys/sysDepartment',
    method: 'post',
    data: data
});

export const delDept = (ids) => request({
    url: baseUrl + '/sys/sysDepartment/' + ids,
    method: 'delete',
});
export const updateDept = (data) => request({
    url: baseUrl + '/sys/sysDepartment',
    method: 'put',
    data: data
});

